package bookStore.service.privilege;

import java.sql.SQLException;
import java.util.List;

import bookStore.po.User;
import bookStore.service.BaseService;
import bookStore.vo.UserWithResources;

public interface UserService extends BaseService<User>{
	public User login(String username,String password);
	List<String> getBlackList(int userId);
	
	/**
	 * 注册：在用户表中添加用户数据，同时在user_role表中添加用户权限
	 * @param u
	 * @throws SQLException
	 */
	int register(User u);
	
	void updateUserWithRole(User u,int [] roleIds);
	
}
